package com.itheima.ex;

import com.itheima.domain.Account;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;


@ControllerAdvice
public class MyEX {
    @ExceptionHandler(Exception.class)
    public void updateAccount() {
        System.out.println("发生异常了...");
    }
}
